/***************************************************************************
 *   Copyright (C) 2008 by Eduardo Gurgel Pinho                            *
 *   edgurgel@gmail.com                                                    *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 3 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
***************************************************************************/

#include "light_material.h"

namespace Sirat {

namespace Material {

Light_Material::Light_Material(const Common::Color& _color,const double _energy) : Material(Light_Material_Type), color(_color) , energy(_energy) { }

Light_Material::Light_Material() : Material(Light_Material_Type), color(Common::Color(1.0,1.0,1.0)) , energy(1.0) { }

Light_Material::Light_Material(const Light_Material& _light_material) : Material(Light_Material_Type) {
	color = _light_material.color;
	energy = _light_material.energy;
}

Light_Material::~Light_Material() { }
	
void Light_Material::set_color(const Common::Color& _color) {
	color = _color;
}

void Light_Material::set_energy(const double _energy) {
	energy = _energy;
}
		
Common::Color Light_Material::get_color() const {
	return color;
}
	
double Light_Material::get_energy() const {
	return energy;
}
	
Light_Material& Light_Material::operator=(const Light_Material& _light_material) {
	if(this != &_light_material) {
		Material::operator=(_light_material);
		color = _light_material.color;
		energy = _light_material.energy;
	}
	return *this;
}
	
}

}
